package com.example.day20;

import static java.lang.Character.getName;

/**
 * @author Lenovo
 */
public class ThreadDaemon {
    public class threaddaemon extends Thread {
        @Override
        public void run() {
            for (int i = 0; i < 100; i++) {
                System.out.println(getName() + ":" + i);
            }
        }

        public void setName(String 关羽) {
        }

        public void setDaemon(boolean b) {
        }

        public void start() {
        }
    }
    public class ThreadDaemonDemo {
        public void main(String[] args) {

        }
    }

}
